]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-scroll-bar: Set the handle as a child of the bar, not the trough
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 14 Feb 2012 04:31:21 +0000 (23:31 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 14 Feb 2012 21:48:47 +0000 (16:48 -0500)
The handle was a child of the trough, but it was allocated and painted
like it was a child of the bar. This will wreak havoc when we port over
to the new Clutter API, so let's just make it a child of the bar.

https://bugzilla.gnome.org/show_bug.cgi?id=670034

src/st/st-scroll-bar.c

index 6fe185db150fc1ae1b327240870eb71517d88f3e..30e6f627afcbf9ae89745bbca6c705cc08268468 100644 (file)
@@ -1163,7 +1163,7 @@ st_scroll_bar_init (StScrollBar *self)
   self->priv->handle = (ClutterActor *) st_button_new ();
   clutter_actor_set_name (CLUTTER_ACTOR (self->priv->handle), "hhandle");
   clutter_actor_set_parent (CLUTTER_ACTOR (self->priv->handle),
-                            self->priv->trough);
+                            CLUTTER_ACTOR (self));
   g_signal_connect (self->priv->handle, "button-press-event",
                     G_CALLBACK (handle_button_press_event_cb), self);